<%@ page language="java" contentType="text/html; charset=utf-8" pageEncoding="utf-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jstl/core_rt"%>
<c:set value="${pageContext.request.scheme}://${pageContext.request.serverName}:${pageContext.request.serverPort }${pageContext.request.contextPath}"
	   var="basePath" />
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<jsp:include page="../commons/jsp/common.jsp"></jsp:include>
<!-- chosen插件js -->
<link rel="stylesheet" href="${basePath}/commons/js/chosen.css"  media="screen">
<script type="text/javascript" src="${basePath}/commons/js/chosen.jquery.min.js"></script>
<script type="text/javascript" src="${basePath}/students_dong/studentsList.js"></script>
<link>
<title>学生信息管理</title>
</head>

<body>
	<div  class="inner-page-top layui-clear" style="padding: 14px 21px 14px;">
		<span style="font-size: 18px; font-weight: bold;">学生信息管理</span>
	</div>
	<div class="inner-page-main layui-clear">
		<div class="inner-page-main-container">
		<form class="layui-form" method="post" id="selectForm">
			<table>
				<tr>
				<td>
				  <div class="layui-form-item">
				    <label class="layui-form-label"  style="width: 100px">姓名</label>
				    <div class="layui-input-block">
				    
				    <!--这个地方关系着 后台 模糊查询的时候的取值，所以前后台一定要对应，否则取到的值是空。这里是name ,那么后台的map.get(name)  -->
				    <input type="text" id="name" name="name" lay-verify="name" placeholder="请输入学生姓名" autocomplete="off" class="layui-input">
				    </div>
				  </div>
			  	</td>
			  	<td>
		  		  <div class="layui-form-item">
		  			<label class="layui-form-label" style="width:100px">匿名</label>
		  			<div class="layui-input-block">
		  		      <input class="layui-input" type="text" id="niming" name="niming"  lay-verify="niming" placeholder="请输入匿名信息" autocomplete="on">
		  			</div>
		  		  </div>
			  	</td>
			  	<td>
			 	<div class="layui-form-item">
				    <div class="layui-input-block" >
				      <button type="button" class="layui-btn layui-btn-primary" lay-filter="formDemo" onclick="queryStudent()">查询</button>
				      <button type="reset" class="layui-btn layui-btn-primary">重置</button>
				    </div>
		  		</div>
		  		</td>
		  		</tr>
		  	</table>
		 </form>
  	</div>
  	</div>
		<div class="inner-page-main layui-clear">
		<div class="inner-page-main-container">
			<button class="layui-btn layui-btn-normal" id="addStu">添加学生</button>
			<table class="layui-table" id="stuTable" style="margin-top:15px;">
			 	<colgroup>
				 	<col>
				 	<col>
				 	<col>
				 	<col>
				 	<col>
				    <col width="150">
			  	</colgroup>
				<thead>
				  <tr>
				    <th style="text-align: center;">学生姓名</th>
				    <th style="text-align: center;">匿名</th>
				    <th style="text-align: center;">年龄</th>
				    <th style="text-align: center;">性别</th>
				    <th style="text-align: center;">所在班级</th>
				    <th style="text-align: center;">添加时间</th>
				    <th style="text-align: center;">操作</th>
				  </tr> 
				</thead>
				<tbody>
				</tbody>
			</table>
		</div>
	</div>
</body>
</html>